package com.xiaoyu.merchant;

import android.content.Context;
import android.content.Intent;

import com.xiaoyu.commonlib.plug.IMasterPlugRules;
import com.xiaoyu.merchant.ui.activity.login.LoginActivity;

public class MerchantPlugRuleImpl implements IMasterPlugRules{
    @Override
    public void goToLoginActivity() {
        Context context = MerchantApplication.getAppContext();
        Intent intent = new Intent(context, LoginActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
        context.startActivity(intent);
    }
}
